package com.lhf.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (FvsSysRouter)表实体类
 *
 * @author liuhf
 * @since 2021-04-07 17:18:17
 */
@SuppressWarnings("serial")
public class FvsSysRouter extends Model<FvsSysRouter> {

    //路由名
    private String name;
    //组件
    private String component;
    //前端路径
    private String path;
    //重定向地址,也可以为别名
    private String redirect;

    private String meta;
    //是否对大小写敏感 0是 1否
    private Integer casesensitive;
    //权限id
    @TableId(type = IdType.INPUT)
    private Long pid;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }

    public Integer getCasesensitive() {
        return casesensitive;
    }

    public void setCasesensitive(Integer casesensitive) {
        this.casesensitive = casesensitive;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.pid;
    }
}
